<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<base href="<%=basePath%>" >
</head>
<body >
	
	<script type="text/javascript" src="<%=basePath%>scripts/system/workflow/workflowProcessFunMount.js"></script>	
	<script type="text/javascript" src="<%=basePath%>scripts/system/workflow/workflowEntrustManager.js"></script>
	<script type="text/javascript" src="<%=basePath%>scripts/system/workflow/workflowTasks.js"></script>	
	<script type="text/javascript" src="<%=basePath%>scripts/system/workflow/workflowProcessEvents.js"></script>	
	<script type="text/javascript" src="<%=basePath%>scripts/system/workflow/workflowTaskEvents.js"></script>	

	<!-- 流程挂接 -->
	<div id="workflowProcessFunMountToolBar" class="borsty-b">
		<a id="mountWorkflowProcessBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="mountProcessFun();">挂接流程</a>
		<a id="cancelWorkflowProcessBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="unMountProcessFun();">取消挂接</a>
		<a id="workflowProcessEventsBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="openWorkflowProcessEventsWindow();">流程事件</a>
		<a id="workflowTasksBtn" href="javascript:void(0)" class="easyui-linkbutton" onclick="openWorkflowTasksWindow();">任务节点</a>
		<a id="closeWorkflowProcessFunMountBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="curTabClose();">关闭</a>
	</div>
	<div id="workflowProcessFunMountDataGrid" fit="true"></div>

	
	<!-- 流程事件 -->
	<div id="workflowProcessEventsWindow">
		<div id="workflowProcessEventsToolBar" class="borsty-b">
			<a id="addWorkflowProcessEventsBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="addWorkflowProcessEvents();">增加</a>
			<a id="editWorkflowProcessEventsBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="editWorkflowProcessEvents();">编辑</a>
			<a id="removeWorkflowProcessEventsBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="removeWorkflowProcessEvents();">删除</a>
			<a id="saveWorkflowProcessEventsBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="saveWorkflowProcessEvents();">保存</a>
			<a id="closeWorkflowProcessEventsBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="closeWorkflowProcessEventsWindow();">关闭</a>
		</div>
		<div id="workflowProcessEventsDataGrid" fit="true"></div>
	</div>
	
	<!-- 任务节点 -->
	<div id="workflowTasksWindow">
		<div id="workflowTasksToolBar"  class="borsty-b">
			<a id="editWorkflowTasksBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="editWorkflowTasks();">编辑</a>
			<a id="saveWorkflowTasksBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="saveWorkflowTasks();">保存</a> 
			<a id="entrustManagerBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="openEntrustManagerWindow();">委托管理</a>
			<a id="workflowTaskEventBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="openWorkflowTaskEventsWindow();">任务事件</a>
			<a id="closeWorkflowTasksBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="closeWorkflowTasksWindow();">关闭</a>
		</div>
		<div id="workflowTasksDataGrid" fit="true"></div>
	</div>
	
	<!-- 委托管理 -->
	<div id="entrustManagerWindow">
		<div id="entrustManagerToolBar">
			<a id="editEntrustManagerBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="editEntrustManager();">编辑</a>
			<a id="saveEntrustManagerBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="saveEntrustManager();">保存</a>
			<a id="closeEntrustManagerBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="closeEntrustManagerWindow();">关闭</a>
		</div>
		<div id="entrustManagerDataGrid" fit="true"></div>
	</div>
	
	<!-- 任务节点事件 -->
	<div id="workflowTaskEventWindow">
		<div id="workflowTaskEventsToolBar" class="borsty-b">
			<a id="addWorkflowTaskEventsBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="addWorkflowTaskEvents();">增加</a>
			<a id="editWorkflowTaskEventsBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="editWorkflowTaskEvents();">编辑</a>
			<a id="removeWorkflowTaskEventsBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="removeWorkflowTaskEvents();">删除</a>
			<a id="saveWorkflowTaskEventsBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="saveWorkflowTaskEvents();">保存</a>
			<a id="closeWorkflowTaskEventsBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="closeWorkflowTaskEventsWindow();">关闭</a>
		</div>
		<div id="workflowTaskEventsDataGrid" fit="true"></div>
	</div>
	
</body>
</html>